package com.bibrApp.difu.adapter;

import com.bibrApp.difu.R;
import com.bibrApp.difu.Response.PaySettingResPonseBody;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.Locale;

import androidx.annotation.NonNull;

/**
 * @CreateDate 2020/3/9
 * @Author dj
 */
public class AllPaySettingAdapter extends BaseQuickAdapter<PaySettingResPonseBody, BaseViewHolder> {

    public AllPaySettingAdapter() {
        super(R.layout.item_pay_setting);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, PaySettingResPonseBody item) {

        helper.setText(R.id.item_b_name_pay_setting, item.getCoinEunit())
                .setText(R.id.item_address_pay_setting, item.getWalletAddress());
        helper.setVisible(R.id.item_type_pay_setting,item.getState()==1);
        helper.addOnClickListener(R.id.item_copy_pay_setting);
    }


}